<?php    
header('Content-type: application/xls');
header("Content-Disposition:attachment;filename=p.xls");
?>
<table><th><td>du lieu xuat excel</td></th></table>